package com.soxing.webrain.brush.common.constant;

/**
 * 系统常量
 *
 * @author luqiang
 *
 */
public class SystemConstants {

	/**
	 * shell脚本具体命令占位符
	 */
	public static String SPECIAL_CMD = "specialCmd";

	/**
	 * 进程参数,带projectId
	 */
	public static String PROJECT_PID_PREFIX = "-combs_project_id ";
	/**
	 * 日志路径参数
	 */
	public static String PROJECT_LOGPATH_PREFIX = "-combs_project_logpath ";

	/**
	 * 系统类型
	 */
	public static String SYSTEM_TYPE = "system";
	/**
	 * 系统前缀
	 */
	public static String SYSTEM_PREFIX = "system";

	/**
	 * 任务类型
	 */
	public static String PROJECT_TYPE = "project";
	/**
	 * 任务前缀
	 */
	public static String PROJECT_PREFIX = "project";
	/**
	 * chmod日志文件名
	 */
	public static String CHMOD_LOG_FILE_NAME = "chmod.log";
	/**
	 * 日志后缀
	 */
	public static String LOG_SUFFIX = ".log";
	/**
	 * Linux 执行符号
	 */
	public static String EXE = "";

	/**
	 * li模板
	 */
	public static String LI_TEMPLATE = "<li class='dd-item' data-id='${dataId}'><div class='dd-handle'><div class='form-group pull-in'><div class='col-sm-1'><label><i class='${isDir}'></i></label> </div><div class='col-sm-3'><label>${FileName}</label> </div><div class='col-sm-2'><label>${Size}</label> </div><div class='col-sm-3'><label>${lastModified}</label> </div><div class='col-sm-2'><label></label><a target='_blank' href='/myview/linegraph.html?fullpath=${FullPath}' style='display:${isView}'>View</a></div></div></div>${ol}</li>";

	/**
	 * 带checkbox的li模板
	 */
	public static String LI_TEMPLATE_FOR_CHECKBOX = "<li class='dd-item' data-id='${dataId}'><div class='dd-handle'><div class='form-group pull-in'><div class='col-sm-1'><input name='mypath' value='${path}' type='checkbox'>&nbsp;&nbsp;&nbsp;&nbsp;<label><i class='${isDir}'></i></label> </div><div class='col-sm-3'><label>${FileName}</label> </div><div class='col-sm-2'><label>${Size}</label> </div><div class='col-sm-3'><label>${lastModified}</label></div><div class='col-sm-2'><label></label><a target='_blank' href='/myview/linegraph.html?fullpath=${FullPath}' style='display:${isView}'>View</a></div></div></div>${ol}</li>";

	/**
	 * myFile的li模板
	 */
	public static String MYFILE_LI_TEMPLATE = "<li class='dd-item' data-id='${dataId}'><div class='dd-handle'><div class='form-group pull-in'><div class='col-sm-1'><label><i class='${isDir}'></i></label> </div><div class='col-sm-3'><label>${FileName}</label> </div><div class='col-sm-2'><label>${Size}</label> </div><div class='col-sm-3'><label>${lastModified}</label> </div><div class='col-sm-2'><label></label><a target='_blank' href='/myview/linegraph.html?fullpath=${FullPath}' style='display:${isView}'>View</a></div></div></div>${ol}</li>";

	/**
	 * ol模板
	 */
	public static String OL_TEMPLATE = "<ol class='dd-list'>${li}</ol>";

	/**
	 * 文件格式说明
	 */
	public static String FILE_FORMAT_DESC = "FileFormatDesc";

	/**
	 * 首页参数
	 */
	public static String HOME_PAGE_PARAM = "HomePage";
	/**
	 * RESOURCES
	 */
	public static String RESOURCES = "RESOURCES";
	/**
	 * DOCUMENTION
	 */
	public static String DOCUMENTION = "DOCUMENTION";
	/**
	 * PUBLICATIONS
	 */
	public static String PUBLICATIONS = "PUBLICATIONS";
	/**
	 * Contact Us
	 */
	public static String CONTACT_US = "CONTACT_US";

	/**
	 * HOME_PAGE_LINKS
	 */
	public static String HOME_PAGE_LINKS = "HOME_PAGE_LINKS";
	/**
	 * 临时目录
	 */
	public static String TEMP_DIR = "temp";
	/**
	 * 临时shell文件名
	 */
	public static String TEMP_SHELL_FILE = "myshell.sh";
}
